//
//  TicketDetailViewController.h
//  WeiShangKeProj
//
//  Created by 焱 孙 on 15/5/28.
//  Copyright (c) 2015年 visionet. All rights reserved.
//

#import "QNavigationViewController.h"
#import "TicketVo.h"
#import "InsetsTextField.h"
#import "CustomPicker.h"
#import "ChooseTagViewController.h"
#import "InPutView.h"
#import "SZTextView.h"
#import "EmailInputView.h"

//定义返回刷新Block类型
typedef void (^RefreshTicketBlock)(void);

typedef enum _TicketDetailType{
    TicketDetailAddType,
    TicketDetailModifyType
}TicketDetailType;

@interface TicketDetailViewController : QNavigationViewController<EmailInputViewDelegate,InPutSendDelegateWithAttach,ChooseTagViewControllerDelegate,UITextViewDelegate,UITableViewDataSource,UITableViewDelegate,UITextFieldDelegate>

@property(nonatomic)TicketDetailType ticketDetailType;
@property(nonatomic,strong)TicketVo *m_ticketVo;
@property(nonatomic,strong)NSMutableArray *aryType;
@property(nonatomic,strong)NSString *strTypeID;

@property(nonatomic,strong)UIScrollView *m_scrollView;

//设备序列号
@property(nonatomic,strong)UILabel *lblSerialTitle;
@property(nonatomic,strong)UILabel *lblSerial;
@property(nonatomic,strong)UIView *viewLineSerial;

//联系人
@property(nonatomic,strong)UILabel *lblContactTitle;
@property(nonatomic,strong)UILabel *lblContact;
@property(nonatomic,strong)UIView *viewLineContact;

//手机
@property(nonatomic,strong)UILabel *lblMobileTitle;
@property(nonatomic,strong)UILabel *lblMobile;
@property(nonatomic,strong)UIButton *btnMobile;
@property(nonatomic,strong)UIView *viewLineMobile;

//单位
@property(nonatomic,strong)UILabel *lblUnitTitle;
@property(nonatomic,strong)UILabel *lblUnit;
@property(nonatomic,strong)UIView *viewLineUnit;

//上门时间
@property(nonatomic,strong)UILabel *lblDateTitle;
@property(nonatomic,strong)UILabel *lblDate;
@property(nonatomic,strong)UIView *viewLineDate;

//描述
@property(nonatomic,strong)UILabel *lblContent;
@property(nonatomic,strong)UIView *viewLineContent;

//标签管理
@property(nonatomic,strong)UIView *viewTag;
@property(nonatomic,strong)UIView *viewTagContainer;
@property(nonatomic,strong)UIButton *btnAddTag;
@property(nonatomic,strong)UIView *viewLineTag;
@property(nonatomic,strong)UILabel *lblTagPlaceHolder;

//工单操作记录
@property(nonatomic,strong)UITableView *tableViewRecord;

//bottom button
@property(nonatomic,strong)UIView *viewBottom;
@property(nonatomic,strong)UILabel *lblStatus;

@property(nonatomic,strong)UIButton *btnStart;          //接受（开始维修）
@property(nonatomic,strong)UIButton *btnTransfer;       //转移
@property(nonatomic,strong)UIButton *btnRemoteDone;     //远程完成
@property(nonatomic,strong)UIButton *btnDone;           //维修完成

//发送邮件
//@property(nonatomic,strong)EmailInputView *emailInputView;

//
@property(nonatomic,strong)ChooseTagViewController *chooseTagViewController;

//add record
@property(nonatomic,strong)InPutView *inPutView;

@property(nonatomic)BOOL bBackRefresh;  //返回页面是否刷新列表
//block
@property(nonatomic,copy)RefreshTicketBlock refreshTicketBlock;

@end
